<g:if test="${tasks.size() != 0}">
    <div id="task-list">
        <g:each in="${tasks}" var="task">
            <h3><a href="#">${task.name}</a></h3>
            <div>
               <div class="short-description">${task.description}</div>
               <form action="editTask">
                   <button class="edit-button" name="taskName" value="${task.name}">Edit</button>
               </form>
               <form action="deleteTask">
                   <button class="delete-button" name="taskName" value="${task.name}">Delete</button>
               </form>
            </div>
        </g:each>
    </div>
</g:if>
<g:else>
    <span class="no-data">No tasks</span>
</g:else>
